package HLLib.userControl;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;
import HLCode.HLObject;
import HLLib.base.HLString;

public class HLExchangeItem extends HLLibObject {
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_USERCONTROL, HLClassManager_H.LIB_CLASS_USERCONTROL_ExchangeItem);
    }

    public int GetInt(int index) {
        switch (index) {
        case 0: {
            return mb;
        }
        case 1: {
            return money;
        }
        }
        return 0;
    }

    public void SetInt(int index, int value) {
        switch (index) {
        case 0: {
            mb = value;
            return;
        }
        case 1: {
            money = value;
            return;
        }
        }
    }

    public HLObject GetObject(int index) {
        return des;
    }

    public void SetObject(int index, HLObject value) {
        des = (HLString) value;
    }

    public int mb;

    public int money;

    public HLString des;

    public void SetItem(int money) {
        this.money = money;
    }

}
